
package com.yuhanginfo.modules.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.yuhanginfo.common.service.CrudService;
import com.yuhanginfo.modules.sys.entity.EnquiryGoods;
import com.yuhanginfo.modules.sys.dao.EnquiryGoodsDao;

/**
 * 询价管理Service
 * @author yangs
 * @version 2017-11-23
 */
@Service
@Transactional(readOnly = true)
public class EnquiryGoodsService extends CrudService<EnquiryGoodsDao, EnquiryGoods> {
    @Autowired
    private EnquiryGoodsDao enquiryGoodsDao;
    

	
	@Transactional(readOnly = false)
	public void save(EnquiryGoods enquiryGoods) {
		super.save(enquiryGoods);
	}
	
	@Transactional(readOnly = false)
	public void delete(EnquiryGoods enquiryGoods) {
		super.delete(enquiryGoods);
	}

	public EnquiryGoods selectByCode(String code) {
		
		return enquiryGoodsDao.selectByCode(code);
	}

	public List<EnquiryGoods> selectByEnquiryGoodsId(String code) {
		
		return enquiryGoodsDao.selectByEnquiryGoodsId(code);
	}
    
	@Transactional(readOnly = false)
	public void upStatus(EnquiryGoods enquiryGoods) {
		enquiryGoodsDao.upStatus(enquiryGoods);
		
	}
	
}